package cn.yyh.serviceOrder.client;

import cn.yyh.commons.exception.MyException;
import cn.yyh.serviceOrder.domain.Product;

/**
 * @author 杨永航
 * @version 1.0
 * @Title: ProductClientHystrix
 * @Package: cn.yyh.serviceOrder.client
 * @date 2021/7/12
 */
public class ProductClientHystrix implements ProductClient {
    @Override
    public String getById(Long id, String token) {
        throw new MyException("已超时,请稍后重连");
    }

    @Override
    public void saveOrUpdate(Product department, String token) {
        throw new MyException("已超时,请稍后重连");
    }
}
